package com.whd.strategy.c_okWtite;

/**
 * @author whd
 * @date 2024/07/18 17:36:35
 */
public class Discount implements Count{
    private Double discount;
    @Override
    public Long sum(Long money, Integer count) {

        return (long) (money*count*discount);
    }
    public Discount(Double discount){
        this.discount =discount;
    }
}
